.board-form-wrap {
    max-width: 540px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 24px 8px; /* 모바일 기본 패딩(좌우 8px) */
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 600px) {
    .board-form-wrap {
        padding: 40px 40px; /* PC/태블릿에서는 넉넉한 좌우 패딩 */
    }
}

.fieldset-box {
    margin-bottom: 28px;
    padding: 24px 20px;
    background: #f7f8fa;
    border-radius: 12px;
    border: 1px solid #e5e8eb;
}

.fieldset-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222;
}

/* ===== 정렬 개선 부분 시작 ===== */

/* 두 개씩 한 줄에 배치할 행 */
.form-row.two-cols {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.form-row.two-cols > label {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    color: #444;
    min-width: 120px;
}

/* 한 줄에 하나만 배치할 행 */
.form-row.one-col {
    display: flex;
    margin-bottom: 12px;
}
.form-row.one-col > label {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    color: #444;
    min-width: 200px;
}

/* ===== 정렬 개선 부분 끝 ===== */

input[type="text"], input[type="email"], input[type="number"], input[type="url"], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    margin-top: 6px;
    box-sizing: border-box;
    transition: border 0.2s;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="url"]:focus, textarea:focus, select:focus {
    border-color: #4f8cff;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 70px;
}

/* 상품정보 행: +버튼 완전 중앙 정렬 */
.product-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.product-row input, .product-row select {
    flex: 1 1 0;
    min-width: 0;
}
.product-row button {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #e5e8eb;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    margin-left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.product-row button:hover {
    background: #4f8cff;
    color: #fff;
}

.btn_submit, .btn_cancel {
    display: inline-block;
    background: #4f8cff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 18px;
    margin-right: 8px;
    transition: background 0.2s;
}
.btn_cancel {
    background: #b0b8c1;
}
.btn_submit:hover {
    background: #2563eb;
}

@media (max-width: 600px) {
    .board-form-wrap {
        padding: 16px 6px;
    }
    .fieldset-box {
        padding: 10px 6px;
    }
    /* 정렬 개선: 모바일에서는 모두 세로로 */
    .form-row.two-cols,
    .form-row.one-col {
        flex-direction: column;
        gap: 4px;
    }
    .product-row {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }
    .product-row button {
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }
}

section#bo_w {
    max-width: 540px;
    margin: 40px auto;
    padding: 24px 8px;
    box-sizing: border-box;
    width: 100%;
}
@media (min-width: 600px) {
    section#bo_w {
        padding: 40px 20px;
    }
}


/* 안내문구 박스 스타일 */
.notice-box {
    background: #f8fafc;
    border: 1.5px solid #c9e2ff;
    border-radius: 7px;
    padding: 18px 20px 15px 20px;
    margin-bottom: 18px;
    margin-top: 10px;
    box-shadow: 0 2px 7px rgba(80,120,180,0.05);
}

.notice-title {
    font-size: 1.13em;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-list {
    list-style: disc inside;
    margin: 0;
    padding-left: 10px;
    color: #222;
    font-size: 0.98em;
}

.notice-list li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.notice-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.notice-list .highlight {
    background: #e0f2fe;
    padding: 1px 4px;
    border-radius: 3px;
    color: #0369a1;
    font-weight: 500;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 15px;
}
.product-table th, .product-table td {
    border: 1px solid #e5e8eb;
    padding: 10px 8px;
    text-align: left;
}
.product-table th {
    background: #f7f8fa;
    font-weight: 600;
    color: #222;
}
.product-table tr:nth-child(even) {
    background: #fafbfc;
}
#bo_v .fieldset-box,
.board-form-wrap .fieldset-box,
.fieldset-box {
    background: #f7f8fa !important;
    border: 1px solid #e5e8eb !important;
    padding: 24px 20px !important;
    border-radius: 12px !important;
}
